script: Launch script with correct action if last script call is terminated