Bug fix for #4295 : Problem when session expires while importing file

Bug fix for:
#4295 Problem when session expires while importing file.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>