void on_delete_event(object o, DeleteEventArgs args)
{
//nice: this makes windows no destroyed, then it works like button_close
fakeWindowDone.Click();
if(connecting)
button_cancel.Click();
args.RetVal = true;
ChronopicWindowBox.chronopic_window.Hide();
}