Added small socket error gestion
fixed bug not displaying smileys