I was thinking of letting the garbage collector handle that, but don't mind adding the close logic.