Make sure all error conditions return non-zero.