Fix #13103. Add .finish() method. Close gh-1118.