I think you might want to put this out of this go routine. 
Also do a 
```go
_, ok <- stopRoutine:
```
to detect a channel close.