Remove tabs and canvases when closing the project.