handle failure of getgrgid_grpname() and getpwuid_username()

If these throw a TypeError (not sure how to cause it, but had one
report of same), we would die.  So catch that too.