log errors in sockets