The function should offer an additional timeout parameter in order to resume execution for clients and be able to cope with the failure.