Try catch around open file when no application associated with file