Proper exit code checking.