Close the browser when the terminal process exits.