It starts to switch off by itself. I have to re-plug it for it to work again.

Is it dying?

If it isn't, how to fix it?