switch back to using ClosedPtr now that the bugs are fixed.