Added configuration output as a json when quitting, preparing to save it