improvement to 792, exception remove during docker rm