Use `uv_loop_close` instead, `uv_loop_delete` is now deprecated. Also, it would be a good idea to use uv_walk to close all handles, and then run the loop one last time, with `UV_RUN_ONCE` so make sure all handles have been closing before deleting the loop.