You are free to leave at any time. They can’t force you to admit yourself and they can’t make you stay. No rehab or treatment program is going to work unless you are committed to it and willing to see it through to completion.