This need not be true even in an Abelian group. For example, a normed vector space is a topological group under addition (just ignore the scalar multiplication), and it is possible for the sum of two closed subspaces to be non-closed. A specific example of that is given here.