Clean up update loop.