MULE-7907: Ensure to call connection's close method on commit and rollback operations.

(cherry picked from commit 5b27b8c855f517029fe8acfa605d2783f527b7f9)