Catch ObjectDisposedException while reconnecting

Seems also related to issue #19.