Ensure exit code is always returned.