Removing incorrect call to clear session when file save fails