bugfix: call zlog_clean_rest_thread in exit() mutilple times