Fix for rdesktop hanging when it loses the X server connection. (reported by Per Kristian Hove <Per.Hove@math.ntnu.no>)