detect server close due to synchronous callbacks