Timeouts are determined by infrastructure and clients making requests. As server you are not notified of such an event, but if it happens, you cannot write your data through the stream, and that probably results in the error you see. Besides that, you shouldn't need to 'handle' that exception, because the request was made and you should process is, whether the client has awaited the result or not.
So, is there anything that breaks here server side, or did you just get the exception but further everything worked as intended?