"end of file" errors in the middle of mining v6.16.4
![EndOfFile](https://user-images.githubusercontent.com/97701340/154867587-6c98609f-caba-4bd9-91a0-65a82910d747.jpg)

I'm getting this "end of file" error in the middle of mining RTM on minafacil. It seems to happen randomly when receiving a new job. It immediately resumes mining like nothing happened but I don't know if it's affecting the hashrate by doing this so often.

Also getting random "Invalid job id" messages..

![InvalidJobId](https://user-images.githubusercontent.com/97701340/154867723-a0c46fec-49f3-4b36-851b-71d03e8a1db1.jpg)

Don't know if the first error is causing the second error or if there's any correlation.
