send final data in buffer when session is ended