change shutdown from flush to drain