add reader closed listener