Handle OSError as IOError as Piksi disconnected.