PTY ending with 'exit' event instead of 'end'

When using "git push", process is systematically failing. I noticed you were listening to `pterm.on('end')` which is never emitted, you should be listening to `exit` event.