Add check for the new_fd