Fix 2

Fixed a problem: when receiving a invalid message the client stopped.