handle the X command to end the session
implement Engine#end_session
interface can now end a session