Ensure we dont leak a file handle