ag2: Fix unwind-protect