videocapture: wait for done if app is exiting.