close bastion ssh client on connection error