Cleanup of statisticsPanel