Prevent memory leaks

Prevent memory leaks when the livestamp container (or its parent) is
removed from the DOM.