Fixes issue #17 where the app crashes if an exception is thrown due to missing files or problems retrieving a resource.