scheduler errorhandeler