add a strict option to exit nonzero when operations fail
add error_if_strict handler in place of many ifs