Make teardown task generic.
Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>