[browser] exit when last window closed