Stop Webcam when widget is detached

If the stream is not stopped, the webcam stays active until the page is left or reloaded. This little function stops the webcam when the widget is detached.