do not keep a reference to the tied object when trying to untie it
corrected ssh_with_return to not expect $self