Correctly stopping the script if no camera found

Fixes #1