allow agent goroutine to stop the main on fatal errors

Signed-off-by: Nick Wade <nwade@pivotallabs.com>