attempt to retrieve peer gid within a try/except block