Hey Button,
My PhD was scholarship funded, but I finished 3 months early and wasn't asked to pay anything back even though I had received funding for the final 3 months. Couldn't tell you about ESRC though, perhaps you'd be best checking with them.
Best, KB