Making sure that multi-locality applications terminate properly when used with --hpx:print-counter-interval