Added check for failure to add file to recent list