serve: be sure to check the parser and its output streams & cleanup as needed

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>