Implement disposePartition.