Fixes #5 Tasks and Events are handled through static factories. There's a check in the code to initialize the factories only if they are not NULL, however the cleanup phase wasn't setting factories back to NULL preventing the correct initialization on subsequent ocrInit calls. This design is bad, those factories should be part of the domain policy.