feat(shutdown): purge registry when shutting down gracefully