fix bug with gui Project.close()