Oil settles down more than $5 as US data shows weak demand for gasoline