Not exactly what you want but you could create an autohotpie menu. The close option there, would apply to any program not just Dopus. Or just use autohotkey to create a hotkey for alt+f4.