Removed hanging file closure