Avoid getting sigpiped