fix script runner error handling