Remove possible leak

nameUtf8 is not released after exception.
In addition, Fix code going down after ThrowException