added connection timeout for faster recovery