Attempt to fix Script::run concurrency issues