How to control screen sharing stream?

I implemented screen sharing using Licode (on Chrome). But I can’t control
screen sharing stream after initializing it. Stream can’t be disabled on
code like normal audio/Video stream
localStream.stream.getVideoTracks()[0].enabled = false. And if I stop
screen sharing from Chrome’s popup I can’t get any information that the
stream is closed. Any ideas about this?