Prevent an NPE when closing your wallet