[#63806804] Abort if request fails

So that we return the correct exit code. Where previously run from Jenkins:
```
Failed to configure the edge gateway
Finished: SUCCESS
```
Merge pull request #8 from alphagov/63806804-exit_code_fail

[#63806804] Abort if request fails