Configurable function result handler with persistency against failures.