Separate agent from scriptengine
Add error.backtrace