Prevents kue emitting errors after shutdown

Prevents kue from emitting errors after the client has shutdown.