closing file descriptor now