Add exception handler to Application