Fix a bug: loop exits do not exit the trampoline.

The exit call to break needs to clear the appropriate loop flag.