ESP 32-c3 stability problem

I men the acces point, if i upload the code the ap will start like in 5 minutes then i will conect to it with my phone and if i turn of my phone the ap will turn of