Add an exception handler.
Remove debug.