Fix for broken pipe issue

Signed-off-by: George K. Thiruvathukal <gkt@cs.luc.edu>