Fix an issue that will cause multiple xhr long poll connections if a reconnect attempt is made after the connection has timed out e.g. when the device is in standby
Fix for issue where xhr long poll connections attempt to reconnect after disconnect is called