Close notebook