Add MediaElement cleanup on restart