added end,close,error socket disconnect event