Fix crash-at-shutdown if exiting before initializing wallet