catch OSError checking for socat