Resolves #42 This should fix the failures on SSH channel close.