Spirit Airlines is preparing to shut down after failing to secure a $500 million government lifeline.