Leave insert mode before (trying to) switch buffers