Fix: Do not try to delete read-only files if "open()" fails