Migration: close native sql connections correctly