fix kue shutdown