catching an OSerror to make it more robust.