[SOLVED] ffmpeg keeps running for online streams

For live streams, ffmpeg keeps running, even when i have shutdown the client.
It keeps running until i manually kill the ffmpeg process which is becoming very frustrating.
It does not stop when i pause or stop or even shutdown the device. It does not stop even when i start a new live stream from the same device, so now multiple ffmpeg are running for the same client.
Once I run a live stream, ffmpeg keeps on running and running for it, which is eating up my bandwidth and killing the ffmpeg process manually everytime is becoming frustrating.
Any ideas what can be done about this.
It keeps running until i manually kill the ffmpeg process which is becoming very frustrating.
It does not stop when i pause or stop or even shutdown the device. It does not stop even when i start a new live stream from the same device, so now multiple ffmpeg are running for the same client.
Once I run a live stream, ffmpeg keeps on running and running for it, which is eating up my bandwidth and killing the ffmpeg process manually everytime is becoming frustrating.
Any ideas what can be done about this.