Stocks closed higher on Thursday with the major averages holding onto their gains after the Nasdaq reopened from a more than three hour trading halt.

A technical problem led to a halt of all Nasdaq trading shortly after midday. Shares of Nasdaq OMX were sharply lower following the halt.