cleaning up peer-socket interfaces