Script not executed at the end of the last device (Spoon)