Since reconnect could mean the the server has actually changed the program.... Is there some event coming from the miniserver before restart we could use tom implement the bahaviour?