The future of the Steward Health Care hospitals currently operating in Massachusetts may be in doubt and bankruptcy a real possibility under discussion among health officials, but the state is ready for even that dire circumstance and working to prevent similar problems from occurring in the future, according to officials.