Close WAL when DB is closing