Stocks close lower ahead of earnings season