The stock market closed sharply lower on Friday