Anathem had perhaps the biggest deux ex machina in literary history, and seveneves had an entirely separate novella for an ending.