demo proper cleanup in example