Added Exception handling for SSH connection