fix: [API] Destroy the session at the end of the execution
fix: [API] Destroy the session at the end of the execution

SteveClement/MISP,MISP/MISP,FIRSTdotorg/MISP,SteveClement/MISP,MISP/MISP,MISP/MISP,MISP/MISP,FIRSTdotorg/MISP,SteveClement/MISP,MISP/MISP,FIRSTdotorg/MISP,FIRSTdotorg/MISP,SteveClement/MISP,SteveClement/MISP