Delete the project object after closing.