work around task_interrupted exception being thrown inside c-ares callback.