Error handler must have arity of 4