Close Browser keyword refactored