Are there global unhandled error hooks?

I’m trying to integrate my shiny new Meteor app in the existing infrastructure. That means reporting errors to our Airbrake instance.

I can reasonably well do it in cases where error originates in my code - just call the APIs. But how do I catch the errors thrown by meteor code? Atmosphere packages? Would registering process.on('uncaughtException') handler work? Is there a better way?

Did you find an answer to logging unhandled exceptions?