Fixed issue #5 - disconnecting from client causes an ECONNRESET error