Moto X 2nd gen. randomly goes into Priority Mode
Uninstall Battery Doctor

I figured out why this is happening. It's the Battery Doctor which turns off my Wifi and put my phone in priority mode.

I tested 3-4 times, when I enable (start) Battery Doctor, the issue was reproduced and when I forcefully stopped it, phone works properly.