Disconnect if a sync times out. Fixes issue 496