ide/Project: (#1075) Fixed occasional crash on closing project