Remove errno,msg and use just e

Socket error exception needs to be studied better
right just pring e