fix for broken channel closing