Fix for the graceful exit in iptv_mux.c