Type C-z to undo the last connection creation or deletion. Undo can be repeated.
Type C-y to redo the last undone connection creation or deletion.