Move this.pause to fix #5927

On windows 8 (and maybe other versions of windows) if `this.pause()` isn't called before `_setRawMode` then things go a bit wonky (see #5927).