exit process after doc generated