Remove handler on ioloop error.

This happens frequently when the other end of the pipe dies, and
currently causes circusd to spin on the handler in a busy loop.

I didn't notice this before submitting the last pull request, sorry.  It's an important follow-up fix.