This KB article has a LMS job management tool written in C# using VS 2008.
This tool works for both Sandbox and Production. To use the tool, you select the BDX endpoint from the dropdown to point to Sandbox or Production and enter your token in the User Token text box. The tool has the following features:
Get job status of an LMS job
Abort an LMS job
Find incomplete jobs by job type. This will be helpful in troubleshooting and getting past this error.
Below is a screenshot of the tool that illustrates the getJobStatus feature.