I recently had a similar problem when my pump, which was fairly new, wouldn't switch off. Eventually, I found that the problem wasn't with the pump, but with the inlet socket. I found that a small piece of grass stem was stuck in the non return valve, not allowing it to close properly.