MEDIUM / Change the order of node deletion(connectors first) since
connectors are linked to shapes that might be already deleted