Test if exist before close