Close BioSQL connections on error.

This seems to fix the knock-on failure to be able to delete
the SQLite3 database in the subsequent test due to an open
handle (problem seen under Windows on PyPy 2.1 or older).