Fixed exception handling when there is no file on classpath