test stop loop exception