Close file handle