update graph view
remove nodes from view
close sockets before opening a new socket