close session of project before deleting the project