errorhandling plugin callback