Fixed memory leak with Media element

Previously the dispose method of Media was not calling the dispose and
close methods of any loaded video.