#48 amendment: introduce HgExe.close to ensure that private keys are deleted at the first opportunity.