Saving default config file and killing db writer task at unload