Separate exception stuff out of builtin.c