introduce generic exception in scheduler