MissionCleanup.add(object ID) will add the object to the MissionCleanup group, which is for things that need to be separately deleted when the server ends. Player objects, static shapes, particle effects created by code and projectiles typically go in here. It can prevent some errors when changing maps or closing and restarting the server.