fix client does not emit disconnect event when enable reconnect
Merge branch 'fix_disconnect_event'