What is the purpose of a mental health treatment plan and how does one handle a relapse?

What is the purpose of a mental health treatment plan and how does one handle a relapse?