Correctly handle exception if no capture device is available.