Stop the ecoder when the service stops

Signed-off-by: Umair Khan <omerjerk@gmail.com>