Exiting no longer has a tight loop to prevent 100% CPU usage when
exiting