ensure killing of browsers

Try SIGTERM 5 times and then SIGKILL, loop until the browsers actually exit.