Somehow that patch did look a little bit odd. Could you upload the full .cs file so its easier to do a compare with the changes. There were some completely commented out method. Please remove that and do only the changes.
Yep, the "secondtest" is working nicely without problems. I still get a short "no responding" when I stop a movie but I can't see any long delays in the log. You might wanna test that.