make Db and Workload implement Closeable