Handle closing shared-buffer channels