Make sure we raise a error when things fail.