Dispose correctly the removed nodes with their elements