remove resend queue, reconnect triggered by deliver data.
added reconnecting state to guarantee reconnect is invoked firstly