U.S. stocks closed mixed, with the Nasdaq Composite rising 0.18%, the S&P 500 gaining 0.11%, and the Dow Jones Industrial Average falling 0.13%.