Use a referencequeue to cancel gc'ed requests.