Closing webpage & browser null checks