Spirit Airlines has terminated its merger agreement with Frontier Airlines. Spirit will now take a closer look at JetBlue Airways' offer to buy the company.