Yes, because in transform scrip, you will be able to return a data collection error when the return value ($1) is 10000.
When an actual value is returned again (not timeout), the transform script would do nothing.
Is basically exactly what you are doing now, but instead of 0, you will return data collection error object.