Make sure that view models that belongs to windows are disposed