catch malformed payloads early