correct exit status interpretation