uv_stop() causes uv_delete_loop() to crash