Virtualmin backup error handling

OS type and version Centos 7.9
Webmin version 2.021
Virtualmin version 7.1
Related packages SUGGESTED

Virtualmin backup flow is so:
-Pre backup command → -Backup → -Post back up command.
If there is a failure to Backup part, eg SSH connection failure, the flow continues to post backup command.
Is there a way to handle this so that if any error occurs at the Backup state to halt the whole backup?
(Note: if any error occurs on Pre backup command, the rest of the backup halts, which is )