A try to address #9398.
Right now, LoadMempool()
has now “interruption point”. If one triggers a shutdown, It will always wait until LoadMempool()
has been completed.
This PR does detect a shutdown during the LoadMempool()
while also taking care of not-dumping the mempool during shutdown if the user has request it before the import was completed.
Includes also a GUI fix that ensure proper shutdowns (right now, StartShutdown()
is not called when quitting the GUI).
ping @sipa Needs testing (maybe @instagibbs?)