run_hook always exit on error

fix #13