Remove stale objects at the end of the update loop.
Still crashes due to another problem which I'll fix later