Cleanup entities.