Exit with non-zero code on error

Signed-off-by: Oleg Bulatov <oleg@bulatov.me>