The S&P 500 closed lower Friday.