Added clearing of offline queue on logout to avoid errors on logout/login