Add a try-catch in ReadAllLines to handle a read failure if a file is locked. Add a check for a non-existing export folder when exporting and prompt for new path if it doesn't exist.