When building image, detect build errors sent by Docker and display them. Also cancel the build chain in case of building dependencies. Inspired by https://github.com/Runnable/docker-image-builder/blob/master/lib/DockerBuilder.js