fix ffndb dialog crash issue, when reload nes rom, if ffndb dialog is opend, close it first.