Output the proper exit code