Add guard for OSErrort