Connect to ICore::aboutToShutdown here.
This is what we actually are interested in and it can happen without the whole app being shut down.