MainWindow.java: changed the frame decoration close button behavior to
sotp the application when pressed.