add shutdown logic for perf counters.  make sure retry logic only unmaps file once.