Added logging of server errors to example