Fix close all for Linux.