Add more error handling when calling imgflo processes