Closes the application on Quit button.