MediaEngineTests: if Teardown() fails, avoid hanging