Added write + have server case, moved reset connection case earlier