add --force-rm to clean up after a failed build

This PR is ready for review.

This adds a `--force-rm` flag  to docker build which makes the Docker daemon clean up all containers, even when the build has failed.

Fixes #5644
Fixes #5403