Fix loopback detection
Added peer statistics on exit

This allows the user to determine a good balance between "chattiness" of
peers and minimal allocations while handling sent messages.