Closed surfaces in knot complements and 3-manifolds