1.fix the return to continue in main function to ignore some error like sock binding.
1.add sleep before continue for sock error to ignore resend too fast