Listen for 'close' event instead of 'exit' in for quiet

When firing the callback on the `exit` event, `out` and `err` are
empty. Changing the listened for event to `close` fixes this.