close_channel made public