Hook in last function calls for salt cloud api