Add timeout feature on the async connection #289