Better error handling of non-existing files