setStopped (with the assert) before the write. This way any funny business stops us from marking success.