If Terracotta and Universal Messaging are not connected to DB then there should be no reason to restart these components. So question is are these connected to DB and if yes, then what is the purpose to connect?
Ideally, to make the DB layer highly available there has to be a clustered setup to mitigate such power outages.