Core: New error
event for bailing on uncaught errors
#1638
Merged
error
event for bailing on uncaught errors
#1638