fix ubuntu bug with closing application from system tray.