added ability for simuation thread to terminate its pool of subprocesses

... if requested. changed delete_all_outputs to stop simulation thread and wait for it complete before deleting everything. refs #348