The stock market closed narrowly mixed after whipsaw action ahead of Trump's Iran War deadline at 8 p.m. ET.