Added exception handling support to the pattern