ensure that file handles are never double closed