Now switching to exit_thread when returning