Shutdown is any endpoint URI is larger than 255

We assume that URIs will be 255 or less so we store the length in
a uint8_t. If this is not correct, we will need to modify the
wire format and more.
Remove unused function