Add missing case for socket errors