svace: fix closing potentially negative fd