close the open file descriptor