The mind-body connection is a powerful one.  If your emotional health is fine, then you are at less risk of developing any kind of illness.   A few minutes of meditation before you go to sleep can help improve your mental and physical health.   Avoid stress as much as possible and try to control your reaction to stressful situations.

Additional Reading:

Emotions and Health