destroy window in finalize function.

when playing different streams, it will re-init plugin objects.
since we create a window during init, we need to destroy it when finalize.

Signed-off-by: Haifeng Yan <yanhaifeng@gmail.com>