close file so that's it's not locked

Here's one more that fails (on OS X) with SQLite thinking the DB is locked.