Close file descriptor to avoid error.