catch empty session error