Implemented exception handling after loop