Added call to stop media capture once call is ended.