make sure exit status is honored