race condition

This should not be happening - the queues are being populated before the
processes are started, but I'm still getting an error, so I added one
more check.