proper cleanup of entities