Allow for exiting when the exit buttons are clicked, previously unavailable because of threads locking