Nuxt dev server crashes when it need to restart after a change for exemple in the nuxt.config.js file due to the metrics been already register and the server started.
This commit clear the metric registry at startup and stop the server when nuxt closes allowing a smoother dev experience.