cleanup the before completion state after it's used