check prepare/cleanup failure