Server: robustify listen/close input data