I'm worried about having the finalizer set after we've already freed the resource. I'm not sure if go has particular semantics on this, but I'd be less to keep in mind if these two lines were reversed.