Ensure the execution finishes before proceeding to other test

Fixes random issues with TestExecutionLog