I didn't want to mess with the source code of the SSH library in case it caused some further error.
My stopgap solution was to encapsulate any call that might throw the exception that triggers the dispose inside it's own thread. If the thread doesn't complete within a specified time, I interrupt it. Less than ideal, but it works for the moment.
My stopgap solution was to encapsulate any call that might throw the exception that triggers the dispose inside it's own thread. If the thread doesn't complete within a specified time, I interrupt it. Less than ideal, but it works for the moment.