Close current chapter when creating a new chapter