[#283] fixed issues when switching state (double call to `destroy`) and removing objects (exception)