Perl: unwind the stack on serialization errors with exported functions.
Cosmetics.