added server corruption and timeout handling
server handles timeout and corruption