Handling exception with script result (finished)