Fix output of exception messages for backup and restore commands
Clean up processes module