#26 Close connection before the bulk insertion in logs.