clean up pause loop