Added check for closed connection in ssh.reset() method
Style changes
Merge pull request #7 from 3logic/master

Added check for closed connection in ssh.reset() method