ScanManager#spawn_instance: Fixed DB connection leak