Split Scope into iocshContext and iocshScope to separate per-thread and per-call state. Error handling is per-call.