IDEX-811; IDEX-706: fix closing project