Fixed exceptions causing the stat refresher thread to abort