The ApplicationIntegration connection is only valid while the job step it is running under is active. If
you attempt to perform any operations after the step ends, they will throw an InvalidOperationContextException exception. Use
IsRunning to see if the context is still valid.