when doing a removeChild, also call dispose if supported