Cleanup sockets when timeout occurs.

This fixes #24.

ZMQException:
"Operation cannot be accomplished in current state"