add store_file option

Hi.
I implemented "store_file" option. a historical stat will be stored to the file at shutdown, and it will be restored on started.