createError must throw an error if agent name already in use, fix #62