Delete dynamic routes on shutdown.