{"action":"opened","issue":{"url":"https://api.github.com/repos/petabridge/akkadotnet-code-samples/issues/29","labels_url":"https://api.github.com/repos/petabridge/akkadotnet-code-samples/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/petabridge/akkadotnet-code-samples/issues/29/comments","events_url":"https://api.github.com/repos/petabridge/akkadotnet-code-samples/issues/29/events","html_url":"https://github.com/petabridge/akkadotnet-code-samples/issues/29","id":95455706,"number":29,"title":"RemoteDeploymentSample Exception on Deployer shutdown","user":{"login":"shilonosov","id":471391,"avatar_url":"https://avatars.githubusercontent.com/u/471391?v=3","gravatar_id":"","url":"https://api.github.com/users/shilonosov","html_url":"https://github.com/shilonosov","followers_url":"https://api.github.com/users/shilonosov/followers","following_url":"https://api.github.com/users/shilonosov/following{/other_user}","gists_url":"https://api.github.com/users/shilonosov/gists{/gist_id}","starred_url":"https://api.github.com/users/shilonosov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shilonosov/subscriptions","organizations_url":"https://api.github.com/users/shilonosov/orgs","repos_url":"https://api.github.com/users/shilonosov/repos","events_url":"https://api.github.com/users/shilonosov/events{/privacy}","received_events_url":"https://api.github.com/users/shilonosov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-16T15:12:00Z","updated_at":"2015-07-16T15:12:00Z","closed_at":null,"body":"Hi @skotzko,\r\n\r\nHere is an issue for sample.\r\n\r\nI've tried the RemoteDeploymentSample solution and noted that in case of \"normal\" (hit any key) termination of Deployer following exception appear:\r\n\r\n[ERROR][16/07/2015 18:02:47][Thread 0021][[akka://DeployTarget/system/transports\r\n/akkaprotocolmanager.tcp.0/akkaProtocol-tcp%3a%2f%2fDeployTarget%40127.0.0.1%3a6\r\n202-1]] Underlying transport closed.\r\nCause: Helios.Exceptions.HeliosConnectionException: An existing connection was f\r\norcibly closed by the remote host ---> System.Net.Sockets.SocketException: An ex\r\nisting connection was forcibly closed by the remote host\r\n   at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)\r\n   at Helios.Reactor.Tcp.TcpProxyReactor.ReceiveCallback(IAsyncResult ar)\r\n   --- End of inner exception stack trace ---\r\n[ERROR][16/07/2015 18:02:47][Thread 0010][[akka://DeployTarget/system/endpointMa\r\nnager/reliableEndpointWriter-akka.tcp%3a%2f%2fDeployer%40localhost%3a6201-1/endp\r\nointWriter]] AssociationError [akka.tcp://DeployTarget@localhost:8090] <- akka.t\r\ncp://Deployer@localhost:6201: Error [Shut down address: akka.tcp://Deployer@loca\r\nlhost:6201] [   at Akka.Remote.EndpointReader.HandleDisassociated(DisassociateIn\r\nfo info)\r\n   at Akka.Remote.EndpointReader.OnReceive(Object message)\r\n   at Akka.Actor.UntypedActor.Receive(Object message)\r\n   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)\r\n   at Akka.Actor.ActorCell.ReceiveMessage(Object message)\r\n   at Akka.Actor.ActorCell.Invoke(Envelope envelope)]\r\nCause: Unknown\r\n[ERROR][16/07/2015 18:02:47][Thread 0010][akka://DeployTarget/system/endpointMan\r\nager/reliableEndpointWriter-akka.tcp%3a%2f%2fDeployer%40localhost%3a6201-1] Shut\r\n down address: akka.tcp://Deployer@localhost:6201\r\nCause: Akka.Remote.ShutDownAssociation: Shut down address: akka.tcp://Deployer@l\r\nocalhost:6201 ---> Akka.Remote.Transport.InvalidAssociationException: The remote\r\n system terminated the association because it is shutting down.\r\n   --- End of inner exception stack trace ---\r\n   at Akka.Actor.ActorCell.HandleFailed(Failed f)\r\n   at Akka.Actor.ActorCell.SystemInvoke(Envelope envelope)\r\n\r\nHow to make it not to throw an exception on Deployer termination?"}}