threads10: add Sleep for graceful shutdown