Handle opening failure gracefully