check if an entity has been deactivated already before deactivating

It is a little slower, and could be done in application space but this seems much safer to check in KivEnt