fix timeout error,but it can't exit safe