[PAXEXAM-568] Wrap exceptions that are not serializeable