ide/debugger: Fixed crash on closing project being debugged