Remove mapping cache entries when MainWindow is closed