Support pickling of user error exception