add mock socket error event

Easy to mock s.emit('error')