add beforeRunning for kill broswer