Closes the table of generate response and add +1 to the id.