overwrite exit code to check failure