Fixed the issue with quitting not working.