Cleanup sockets when timeout occurs.

This fixes #24.

ZMQException:
"Operation cannot be accomplished in current state"
Merge pull request #25 from alphacomm/bugfix-24

Cleanup sockets when timeout occurs.