Make application quit on main window close
Make sure the close/delete order is honored on application close