don't close sockets in a callback

Closing a stream after IOLoop has stopped results in the socket never being closed.

If you want to schedule socket closure, use add_callback(stream.close)
Merge pull request #540 from minrk/close-stream-socket

don't close sockets in a callback