You don't need to catch at all here.  As @davisp said use an `after` clause to close the `Db` without modifying the exception:

```
try
    ...
after
    db_close(Db)
end
```