make sure to properly shut down metrics registry