Let's log exception's class
It looks like sometimes closed socket may cause ENOTSOCK exception