Make exceptionIsInstanceOf() static.
Fix race conditions in Spawner stdout/stderr forwarding tests.