Added thread health check