Avoid leaking file handles in load_openssh_key(), as reported by David