handle last ch closed