net-ssh/net-scp — pull request #12 by byplayer (2014-02-12 07:33:10+00:00)
Title: stop zlib warning if scp error occur

If scp error occur, "zlib(finalizer): the stream was freed prematurely." message print to stderr.
I stop it.

Change point is as follows.
close ssh channel before raise