Updated the Quit button to quit more effiecently