Passing ssh object to the destroy method.