qt gui: handle exceptions raised when opening wallet