How to close all instances of unreal engine before uninstalling?

On MacOS Ventura i open Activity Monitor and in search field type epic and force close all processes like EpicWebHelper (five for my case), after that all was fine.