reconnect to server if job submission failed
Merge pull request #719 from boegel/v1.8.x

reconnect to server if job submission failed
Merge branch 'v1.8.x' into develop