Added exception if haps file soes not exist