Fixing a bug where process was not exiting with failure exit code with --browse flag when a test failed