Clean up pod before transitioning build to terminal state