How is an infinite loop terminated automatical?