report uncaught exceptions and provide a hook to put a breakpoint when debugging. http://cr.bittorrent.com/10821013