Added init and cleanup functions to wsh_ssh so that threading doesn't fall over