catch exception for broken file