Improved reconnect behaviour.
Quick fix for broken ssh key problem.