Thanks for your comments.

For those who might encounter the same error:
The solution consist in calling the serializer in "applicationWillTerminate" instead of "deallocate".
Those two functions are cocoa delegate (ie callback).