More general error handling whilst waiting for Jenkins to start