change how to close channel