Add an error continuation.
Turn the environment functions to CPS.
Correction of a bug, the continuation returns! So we must be careful of not executing extra instructions.