I have noticed that when I start a service fabric project on my machine from visual studio the instance keeps running after I stop the debug session.
Can I change it so that the instance is terminated when I stop the debug sessoion?
In your VS project, change the Application Debug Mode setting to 'Remove Application'. More info here.