title: Service Fabric Guest Executable hosting and graceful stop
body: <p>I have a .NET 4.6.2 console application I want to host in Service Fabric.
  My application is listening on console input events for administration tasks.</p>
  
  <p>The most important one is 'q' <strong>to stop the application</strong> - but <strong>in a graceful manner</strong>.</p>
  
  <p><strong>Is it somehow possible to also have this functionality in Service Fabric with a guest executable?</strong><br>
   Of course not on 'q button pressed' but rather on service deleted or whatever events there are.</p>
  
  <p>If there is no way to achieve this kind of integration with a guest executable - which project template do you recommend to build upon?</p>