Adding error checks to log server disconnectons