Closes #2668 Instead of grepping for the reporter, use it in the process and check for the error code