Call terminate after running script so at_exit is handled

at_exit is not called, terminating the runtime will cause it to be called. This will fix jruby apps using commander (which calls run! at exit)