Close browser after generate