emit error events consistently in next tick
#5251
Closed
error events consistently in next tick
#5251