Automatically STOP the playing video on closing windows app

I am having an issue where the current video doesn’t stop when closing the app.

see thread:

simply having plex automatically stop the video when I close the app would solve the issue

thanks