1. A worker thread comprising: a queue adapted to store a plurality of functions to be executed; a memory snapshot mechanism adapted to store a predefined set of data prior to function execution, said predefined set of data being stored in a snapshot memory; a function execution mechanism adapted to execute one of said plurality of functions; a memory comparison mechanism adapted to compare a final memory state to said snapshot memory after said one of said plurality of functions is executed, said memory comparison mechanism adapted to determine an inconsistency; an exception disposition mechanism adapted to perform a remedial action based on said inconsistency, said remedial action comprising resetting said inconsistency to a value in said snapshot memory.