Fixed one of the functions allways creating a new sshClient
Added logging