exit on error

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>