tools: use new closed signal instead of hide