```
if (c != null) {
  c.close();
}
```

Please guard all cursor.close().