Added a removeAll for the deconstructor.