check if session is not null before trying to expire it
remove useless file