stop flushing blocks when the worker is shutdown