Add selenium error catching