ensure test processes exit properly

Signed-off-by: Nick Wade <nwade@pivotal.io>