Revert "adding explicit release of VideoWriter"

This reverts commit 0dab470aa80becf64d11a171f8aa9c24e508048d.