fixed close all docs