add exception handling during execution