Revert "Removes client auto reconnection"

This reverts commit 1989d800a7687b22f44f42ea8b81732fabdcaca2.