Cleaning up open/close and adding targetInfo.isNode (in case we need node specific stuff).