Fix crash when the target file can't be opened, and add about dialog.