Prevent last window closing the app in tray.