add mock socket error event
Merge pull request #5 from fengmk2/socket-error

add mock socket error event