Fixed browser not closing bug #5