Class to replace the open function transparently and add support for ignoring exceptions