Made the resource manager throw an exception when a file does not exist.