correctly stop the msgcenter.