sorted out a masive bug that stopped from closing if no config file present (oops...)