Change shutdown method from `Stop` to `Dispose` for web apps