Add catch block to add information to serialization error

Adding error information for stellar-client issue: https://github.com/stellar/stellar-client/issues/910