handle polling errors better