attempt at stopping selenium from hanging