Fixed a potential issue that data session is not released