on disconnection the server sets a setTimeout that will wait for 5min to reconnect or it will create a new instance of the agent