Added exception capturing during deserialization