trying details.will_retry as suggested by Tobias for determining
in onclose() if a session will retry.