implemented ComputePilot cleanup function to make Matteo's life a bit easier ;-)