US stocks closed lower as mixed economic signals and rising crude prices dominated trading, influenced by geopolitical events.