Prevent parallelism framework from shutting down after individual tests and fix other potential parallelism bugs