Remove layouts on shutdown