fix disconnect event emitting when enabling reconn

When enabling auto reconn, it should emit a disconnect event
when starting to reconnect.