Fixed Config not being saved on exit.