Fix the error when receiving status message from server.

This is throwing error for the socket.read line. This patch fixes it.