Fixed Bug:
The messages are packed in 20. If you send out only 20 or any number mutilple of 20 and turn off the screen. Then the server won't get "End" to indicate the stop.
Solution:
Changed the condition to sent out the "End".Tested and passed.