closing connections if no channel