exec script to catch an exception example