Added in a shutdown hook to help ensure that the browser process is shutdown.