Sorry, I misunderstood. The ERROR state is followed by the CLOSED state which will cleanup the connection and other state like publish callbacks, etc.