Implement framework exception handler