Throw exception on failed unserialization