They can't refuse to pay the electricity supplier as the account is in their name.
As Marg has already mentioned if they take you to the tribunal Tenant B would, in all likelyhood, be awarded all their electricity costs back from you. They could even go for more costs such as moving costs phone...