close the statistics dialog