docker: in case of failed build, still commit the image

Having the image committed even after a build failure is useful when
we open a debug shell.
Use docker rm(i) with -f option