Commit any transactions before closing connection during reconnect