To glue a relatively uncomplicated compact manifold to a manifold of the same dimension along (a component of the latter's boundary)
Cap off, with discs just above the annulus, any circuits that bound in the annulus; then use annuli to cap off adjacent pairs of curves that encircle the annulus in opposite directions.