YCM now closes preview window when exiting insert mode.