Fixed issue with dangling .cfg files on exit.