Don't autocommit on close for the databases.  If they were read-only, then they might fail.