Call session_ended of proxy when session closed