Go to Microsoft Edge, click on the three vertical dots at the top-right (or press Alt + F), and select Settings. Select Settings and click on Systems and Performance. Find the toggle button for the option called Continue running background extensions and apps when Microsoft Edge is closed and turn it off.