support ping; make is_closed private