fixed DockerException raising and handling