Store config before exit.

latest commit 04bc6b96fb
@selaux authored