fixed exit codes on failure