Fix ConnectionClosedException for newer nodejs version
Merge pull request #59 from falsecz/connection-closed-exception

Fix ConnectionClosedException for newer nodejs version