Surface subgroups and handlebody attachment