Add hook for exception.handle