Bug 1047121: Release Window-capture VideoEngine when done; clean up shutdown code r=cpearce a=sylvestre