static void Main(string[] args) { using (var system = ActorSystem.Create("sharded-cluster-system", ConfigurationFactory.Load().WithFallback(ClusterSingletonManager.DefaultConfig()))) { var automaticCluster = new AutomaticCluster(system); try { automaticCluster.Join(); RunExample(system); Console.ReadLine(); } finally { // you may need to remove SQLite database file from bin/Debug or bin/Release in case when unexpected crash happened automaticCluster.Leave(); } } }