Error handling in raspicam
and dealing with no output set