[READY] Fix server hang issue

### Problem

When the connection to the docker host was lost the server didn't handle it very well and would leave the CLI client hanging indefinitely.