add wait_closed