Ensure Docker client uses exit codes when errors occur

This patchset essentially ensures that the Docker client actually exits with error codes if an error is encountered.

Docker-DCO-1.1-Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (github: cyphar)

/cc @shykes @vieux @crosbymichael
Can we check this in `toStatusError` and here returning just 
```
toStatusError(method(args[1:]...)
```