Why do we add it here?
I see it has been deferred before:
```
defer ts.Close()
```