Every exit from loop now goes through terminate(even exceptions).