We have built a one way integration between third party software and D365 Finance. In most cases the third party is calling our custom services and gets a response. However on rare occasions we are facing timeout errors. When this happens the server is closing connection and the third party gets a generic network error. It seems not possible to catch a timeout event\exception with X++. But we would like to avoid timeouts and always send proper responses. We can think of implementing a time counter internally, so just before timeout we can send a proper response and save data if necessary. I wonder if there is any recommended pattern for integrations or maybe someone can share personal experience, it would be appreciated.