Close preview console when opening a new one