private void StopDroplet(Instance instance) { if (instance.StopProcessed) { return; } log.Info(Resources.Agent_StoppingInstance_Fmt, instance.LogID); SendExitedMessage(instance); webServerProvider.UninstallWebApp(instance.Staged); dropletManager.InstanceStopped(instance); instance.DeaStopComplete(); filesManager.CleanupInstanceDirectory(instance); log.Info(Resources.Agent_StoppedInstance_Fmt, instance.LogID); }