33542: test logic for waiting for already exited processes