example of blocking queue producer consumer with 'poisoning queue'