Fix for issue #333 (flaky test)

Fixes #333, a nondeterministic failure in test LogPersistenceErrorTest.