Close file handle on transform check