Add bail-out function for exit during script automations