not call handshake in on err event
delete cleanup call in on error event