Add kill browser script; add some finally tests