Update exception handling to print origin exception