winrtrunner: Prevent crash when closing run engine

Close the package factory before calling CoUnitialize(), as it may
crash the application otherwise.

Task-number: QTBUG-39833
Change-Id: I16108852dd259d981950dff6877ea83f8a471072
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>