I think we should make `inner` `readonly` so this null check is not necessary. We don't need to set it to null in dispose.