Who is responsible when artificial intelligence fails?