clean up main loop