protected override bool Receive(object message) { if ("shutdown".Equals(message)) { Sender.Tell("shutdown-ack"); Context.System.Terminate(); } else { Sender.Tell(message); } return true; } }