Default error handler function that prints the error message to stderr, sets the errcode, and exits if error level is equal to ERROR
ERROR