Fixed exit code reporting.