adding mux-demux error option to detect errors from disconnect

mentioned in #9 @dominictarr