Topshelf/Topshelf — Issue #86: Failure to create service still calls Stop method
Author: haf
Created: 2012-03-05 17:16:41+00:00
State: open

Let's say we have this code:.

```
if (serviceConfiguration.TimeoutServiceEnabled)
{
config.ConfigureService(
c => new TimeoutServiceRegistry(c), start => start.Start(), stop => stop.Stop());
}
```

From MassTransit; if the TimeouService fails to start, then the `Action` lambda is still called, but with null. If the service cannot start, its stop action should not be started.