fixing silent fail at delivery time on expired session.

fixing silent fail at test delivery time when session expires.