Added default error handling mechanism that displays an error.