stop never-ending loop