Added kernel error handling definition