values are often passed out of user-code to the rust program. set_var should return an `Err` and not panic.