impl graceful restart: if shutdown then buffer data output backup file
Merge pull request #1 from vettl/graceful_shutdown

impl graceful restart: if shutdown then buffer data output backup file