Added error handler for peer sockets, adjusted log levels