Connection: Made inspectHandles more robust.