allow stream to be killed externally