entities instead of allMissionObjects

code lock if already running cleanup