Add the right poller->remove_fd call at right place
Correct a misspellings