very hacky way of stopping the GP and sampling stages