close wallet encryption bug