Wall Street ends with modest losses as oil prices fall