[Bug 12418] New: parent window getting closed instead of a tool window