Added missing return value.
Log exit code.