try..except for opening files in vmet