[server] handle malformed message