reconnect to server if job submission failed