Added some logic for opening backup file, including preliminary error handling.