fix exceptions in docker driver