cec: fixed segfault on exit when calling cec-client -l