add closeAll api