[Qt] catch Windows shutdown events while client is running

- prevents unsafe shutdowns on Windows, which is known to be
  able to cause problems with wallet.dat

Limitations:
- needs Qt5 and Windows
- wont run pulltester yet

THIS IS JUST A PREVIEW, NIT INTENDED TO GET MERGED!

See #4036