Catch exception from File constructor