Added methods to deal with client drop in server