Store unbound variables in exception