Stop a channel; fix errors in tests from in-memory channel defects