add some failure detect

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