Fix to exit properly when cancel button pressed, verbose terminal output