Dialog extension: Remove reference to close() method

Fixes gh-6968