Windows' output is 'pass\r\n' while Linux and OS X output is 'pass\n'
Need to improve OS auto kill strategy.