Remember to close key files when rsakey_encrypted meets a bogus one