Subject Re: [IBO] Safe connection close
Author Artur Anjos
Rod:

Jason spoke about this in Fulda.

You should use a flag inside the error event, just to keep track of the
connection status. After that, you must let all other events going on (you
shouldn't interrupt anything that is cleaning up things).

Using the flag, outside the error event: you should call disconnect and
connect again.

Artur