backport SVN commit 913835 by otrichet:
Force a disconnection if a timeout is detected, otherwise a latter command would fail because the connection state is unknown.
Fix https://bugzilla.novell.com/show_bug.cgi?id=440029
svn path=/branches/KDE/4.2/kdepimlibs/; revision=926581