Fixed closure guards.

The environment was not saved prior to exiting the trace after a closure guard failure even though the environment needs to be restored after the side-exit.