Handling exception with script result (2)