close detached windows when closed
close detached windows when they're closed

instead of reattaching them