Avoid missing Queue.Empty reference at process termination

Fixes #88