functional test should quit immediately if the browser is no longer running.

instead of waiting for (long) timeout.