FIX: destroy the session after scan