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.
Merge pull request #398 from lambdafu/redirecter

Remove handler on ioloop error.