Stopped an erroneus video mode change from happening when exiting the engine.