Implement cleanupOnSuccess for pig 0.11
Patch by Alex Liu, reviewed by brandonwilliams for CASSANDRA-6213