Read history, whenever an industry gets too distasteful for IBM they sell it. E.g. Desktops/Laptops and more recently servers to Lenovo. The products might be supported by a lot of services, a mainframe might not be cheap but nor are mainframe consultants. A lot of large corporates still use mainframes and some probably have no plans to get rid of them.
Edit: Grammar mistake