Fix uncaught exception debug output