Closes file handle.