Added logs to Sockets and Handler