Enforce that database connections are closed