If possible, storing the closeHandle boolean at the outset *seemed* to make working with the callback much easier. What would need to change with regard to the object factories etc. to make that still possible?