Catch exception when CSS file can't be opened