Wall St. ends lower as AIG and Twitter weigh