Fix panic for invalid function name
Don't assume availability of .gosymtab / .gopclntab
Reduce nesting
Detatch cleanly upon exit