Fix closing minimized application (without tray)