Add more verbose error/failure messages. Handle the failure of
connection to the server (The Client trigger a new connection request
after 5sec). 
Add the JavaDoc consequently