If you want to abandon the search, you can:
click the Cancel button and close the Find in Files dialog box
click the Stop Build/Compile/Find button on the main toolbar
select Build → Stop Build/Find.