extract exception retry handling for ssh connection establishing