My phone is automatically switching off as i'm disconnecting a call
Can you reboot the phone and test if this behavior continues? What firmware are you on?
Can you please tell us as much as possible. Like does this happen every time. Does it turn off and stay that way or does it restart. The more you can say, the better.