Red Hat BZ#985147 - looks like a port test request failed, after the remote preferences window had been closed, so the window had been unreferenced and destroyed. check it's a valid window before trying to use it as a parent.