Added uncaught exception handler for each abstract stage