Check errors from registering

Signed-off-by: Mike Gehard <mgehard@pivotallabs.com>
Refactor out goroutine dumping

Signed-off-by: Mike Gehard <mgehard@pivotallabs.com>