fix startup/teardown between iterations