exit after doc is generated