More resilient monitoring thread