catch all exceptions when deserializing