Added a way to stop long-running scripts (but only if they support it!)