Note how to stop some goroutines running.
Add some basic cleanup code.