Added timer to handle TCP connexion timeout