speedup quit when network disabled

Signed-off-by: xiehuc <xiehuc@gmail.com>