Webcam is relased when app is closed