Fix memory leaks
Now when closing plugin video stop