Improving stability of the TestDAP_launch_commands test. When collecting output for verifying 'stopCommands' we were not waiting for the output to finish, which could cause issues if the test is running very fast.