Catch exceptions during namespace retrieval too.
Really fix unserialization of attributes.