added a log to outfile check
needed to add 'R' to the list of valid job states for a file