BS-9835, stop scheduler before trying to delete the platform