Fix issue when the player has no alliance
Add the possibility to indicate the max time of the attack  to 999 hours
Close MainFrame when the connection with the interface is close