close the file descriptor