Add a check to avoid double start (resulting in dockerd to panic) and unit test for it