title: Interaction with Windows rebooting/shutdown
body: <p>For example we have a Win32 application which on close of main window hides to tray.<br>
  When user reboot or shutdown OS applications were closed in some way.<br>
  How to handle properly this closing event?<br></p>