Exit subscribe loop on error

Fixes a panic when we end up closing the out channel twice.