make the purger shutdown properly