Bug fix

Fixes a potential deadlock. If the QA test printed enough information
to stderr, the filtering code could reach a deadlock. Now, stderr
information is parsed, stored, and printed to stderr afterwards.