Better error detection when initialising camera