'Cleanup after the command finishes.
Always called: SystemExit, KeyboardInterrupt and any other Exception that occurs.'

def on_exit(self):

    if self.zip_path:
        if self.load_credentials:
            self.remove_uploaded_zip()
        self.remove_local_zip()
