If a point remove related line first

Delete the related shapes after self._delete_shapes so that
related object still exists when calling delete call back.