[WIP] added invalidItemException management to PruneStep. Should be added to the BAP #28