Slight fix to actually handle exception in Sanitytest.