 
   destroy: ->
     @detachResizeEvents()
-    @ptyProcess.terminate()
     @terminal.destroy()
     parentPane = atom.workspace.getActivePane()
     if parentPane.activeItem is this

        "HOME": process.env.HOME
      stdio: 'pipe'

    @ptyProcess = spawn "/Users/bshirai/.rubies/rbx-2.4.1/bin/rbx", [pty, @opts.shell], options
    [@ptyRead, @ptyWrite] = [@ptyProcess.stdin, @ptyProcess.stdout]

    @ptyProcess

    @createPTY args

    @ptyWrite.on 'data', (data) =>
      @terminal.write data.toString()

    # TODO: investigate this lifetime
