should exit with non-0 when fail

Signed-off-by: Bao Haojun <baohaojun@gmail.com>