Closes the Application Window.