As far as I know it is be safe. Calling `uv_close` should remove any references from the event loop so no callbacks will be run after this.