I know it will end after it is done, but what if the user closes the window before it has finished encoding? It will still continue to run. That is why I want to know how to end the task when the window is closed.
↧