Increase ping timeout
Restructure protocol code with less locking
Reload configuration after lost connection or restart.