Fixes a bug, which does not show if the ssh is failing on remote machine