shutdown: fix write test.