emit signal when a project is about to be closed