Clean up counters and config initialisation.