Calling UnregisterAllWallets() instead of UnregisterWallet(pwalletMain) in init.cpp