delete file descriptor after using