remove dead method and move handling docker exception to own class