stop zlib warning if scp error occur

close ssh channel before raise