Add global error handling core functionality.