Made closing window close the Application.