wrap the file select in a try catch block to catch file not existing errors
wrap the file select in a try catch block to catch file not existing errors