Let tests stop if flashing fails

Change-Id: I4c346a30dba78627ffe2f35ae05c3e53ffa4a8a0