Notify the state delegates when we are stopping
Only stop the service if it's running in the test
Clean up calculation of quorum size