don't let move_to move outside of the screen
you can't just free uv handles, you have to close them first

this fixes some memory corruption