workaround to avoid crash on exit. wait longer time is ok(e.g. 1s). but
why?