Save config in background, close issue #41