hotfix(db) close connection on migration errors
hotfix(db) close connection on migration errors

Add some missing connection closing statements when errors occur during
the migration process.

Kong/kong,Mashape/kong,Kong/kong,Kong/kong