Fix stopping queues in local mode.