Oil market takes a toll on stocks