set clean exit code if TCP fail