My Moto X used to do this pretty bad. I had read somewhere that when you want to take the phone off the charger, turn the phone off, let it boot to battery charging/charged screen, and then unplug it and turn it back on.
I know it isn't the same phone, but it might be a KitKat bug. It helped me.