fixed not exiting cleanly when video device can't be opened