Add time out handle when connect server.