put a close on the pubkey ffile