Disable force_snapshot command outside debug mode
Fix session closing