Ensuring session is configured before trying to destory it