breakup :(

So my boryfriend just broke up for me but it's because he's been ill for a whole month and he doesn't think it is fair to me and he doesn't think he can handle both his health and a relationship at the same time. He says if we're both in the right place that we can try again once he gets better, and he wants to stay friends. Should I stay friends and hope that we get back together eventually? Or should I cut all ties from him? I really care about him so I wanna keep in touch but I'm afraid it might be too painful... please help!