Manually close the database connection in the export service.