Catch os.error instead of all Exceptions