added explicit browser close