Here is my code. It can randomly fail at any step that involves spark. The errors are definitely intermittent because they can happen anywhere that calls spark. I have a fee