If this thing last longer how will you terminate the operation because escape key will not work?
Couple of options:
Open Task manager and end task on Solidworks.exe
Or you can
RMB on your taskbar item and select Close Window (although sometimes this doesn't work).
Either way, I would run a reboot before you restart Solidworks.
Just to clarify, I don't believe there's any way to stop the feature without completely shutting Solidworks down.
Retrieving data ...