When a connection is closed when a session is in a
state other than unbound, it will exit with an error.
But according to SMPP 5.0, 2.7 Session Timers, On the
expiry of the inactivity timer "...The resulting
behaviour is to either close the session or issue an
So it seems like connection close is legal in all states.
I think that the correct action is just to log the
event and terminate the session with reason normal.