fixup name leak when root is unlinked

Tidy up the disconnection case error handling to avoid using
junk in jerr.text as a log message.